"""student_project URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from student import views

urlpatterns = [
    path('admin/', admin.site.urls),
    path('login', views.login),# 登录
    path('logout',views.logout),# 登出
    path('register', views.register),
    path('student/query', views.query_student),# 查询学生信息
    path('student/insert', views.insert_student), # 插入学生信息
    path('student/delete', views.remove_student),# 删除学生信息
    path('student/update', views.update_student),# 更新学生信息
    path('course/query', views.query_course), # 查询课程信息
    path('course/queryall', views.query_all_course), # 查询所有可能信息
    path('course/insert', views.insert_course),# 插入课程信息
    path('course/update', views.update_course),# 更新课程信息
    path('course/delete', views.remove_course),# 删除课程信息
    path('score/bind', views.score_add),# 绑定学生和课程的关系，添加学生选课信息
    path('score/unbind', views.score_delete),# 解绑学生和课程的关系，删除学生学科信息
    path('score/update', views.score_update),# 设置选课成绩
    path('score/query', views.score_query),# 学生选课信息查询
    path('findByToken',views.get_by_token),
]
